package com.mock.action.login;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class LogoutAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3126567276150208505L;

	@Override
	public String execute() throws Exception {	
		Map<String, Object> session = ActionContext.getContext().getSession();
		session.remove("logged");
		session.remove("username");
		session.remove("userId");
		return SUCCESS;
	}
	
}
